package com.enums;

import java.util.Random;
import java.util.function.Supplier;

/**
 * @author ANG.YU
 */
@SuppressWarnings("all")
public enum CartoonCharacter implements Supplier<CartoonCharacter> {
    SLAPPY, SPANKY, PUNCHY,
    SILLY, BOUNCY, NUTTY, BOB;
    private Random rand = new Random(47);

    @Override
    public CartoonCharacter get() {
        return values()[rand.nextInt(values().length)];
    }
}
